package org.fuys.coder.infrastructure.scheduled;

import org.fuys.coder.domain.rank.service.IHotRankService;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @projectName: fuys-low-coder
 * @package: org.fuys.coder.infrastructure.scheduled
 * @className: HotRank
 * @author: WangJing
 * @description: 热门排行
 * @date: 2024/7/21 14:57
 * @version: 1.0
 */
@Component
public class HotRank {

    @Resource
    private IHotRankService hotRankService;

    @Scheduled(cron = "0 0 0 */1 * ?")
    public void hotRank(){
        hotRankService.hotRank();
    }
}
